# experiment_2_2.py

from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Chrome()
driver.get("https://wqmt.aisnogames.com/home")
driver.maximize_window()

# # 按Class定位一组元素
# footer_links = driver.find_elements(By.CLASS_NAME, "footer-link")
# print("页脚链接数量：", len(footer_links))

# 按Tag Name定位一组元素
imgs = driver.find_elements(By.TAG_NAME, "img")
print("图片数量：", len(imgs))

sleep(5)  # 休眠5秒供截图
driver.quit()